package com.tripwego.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class MajLblInfosEvent extends GwtEvent<MajLblInfosEventHandler> {

	public static Type<MajLblInfosEventHandler> TYPE = new Type<MajLblInfosEventHandler>();

	private String message;

	public MajLblInfosEvent(String message) {
		this.message = message;
	}

	@Override
	public Type<MajLblInfosEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(MajLblInfosEventHandler handler) {
		handler.handleMajLblInfosEvent(this);
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message
	 *            the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

}